<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('实名认证')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <!-- <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <p>项目名称：</p>
                                <input type="text" name="accename"/>
                            </li>
                            <li>
                                <p>建设单位：</p>
                                <input type="text" name="operator"/>
                            </li> 
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                                <a class="btn btn-primary btn-rounded btn-sm"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div> -->
            <div class="col-sm-12 select-table table-striped">
                 <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
    var prefix = ctx + "realName/realName";
    
    $(function() {
    	//$('#bootstrap-table').bootstrapTable({
    	  var options = {
    			showSearch:false,
              	showRefresh:false,
              	showToggle:false,
              	showColumns:false,
    			url: prefix + "/realNameList",
                //detailUrl: prefix + "/enterprisesBadBehaviorDetail/{id}",
                modalName: "实名认证", 
                columns: [{
                        field: 'id',
                        title: '序号',
						formatter: function (value, row, index) {
						
						    return index + 1;
						}
                    }, 
                    {
                        field: 'name',
                        title: '姓名'
                    }, 
                    {
                        field: 'code',
                        title: '身份证号码'
                    },
                    {
                        field: 'num',
                        title: '缺勤次数'
                    }]
    	   // })
        };
    	$.table.init(options);
    });
    </script>
</body>
</html>